package com.rybbaby.tss.front.tssClassRoom.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssClassRoom.dao.ITssClassRoomDao;
import com.rybbaby.tss.front.tssClassRoom.entity.TssClassRoom;
import org.springframework.stereotype.Repository;

/**
 * @description 教室表数据库操作实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:54:00
 */
@Repository
public class TssClassRoomDaoImp extends GenericDao<TssClassRoom> implements ITssClassRoomDao {

    /**
     * 根据状态来修改教室信息
     *
     * @param targetDateId
     * @param isBlockUp
     * @return
     */
    @Override
    public Integer updateClassRoomByIsBlockUp(String targetDateId, Boolean isBlockUp) {
        return this.executeSql("update tss_class_room set updateTime=Now(),isBlockUp=? where id=?",new Object[]{isBlockUp,targetDateId});

    }
}
